<template>
    <div>
        <h1>工作台</h1>
        <el-button @click="fn1">获取当前勾选</el-button>
        <el-button @click="fn2">设置当前勾选</el-button>
        <MenuCheck ref="menuCheck" />
    </div>
</template>

<script>
import MenuCheck from "@/components/menu-check/index.vue";

export default {
    components: {
        MenuCheck,
    },
    methods: {
        fn1() {
            console.log(this.$refs.menuCheck.get());
        },
        fn2() {
            this.$refs.menuCheck.set([])
        }
    }
}
</script>